cmake_minimum_required(VERSION 3.10)

project(myFs VERSION 1.0)

set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

aux_source_directory("${PROJECT_SOURCE_DIR}/src" SRCS_LIST)
include_directories("${PROJECT_SOURCE_DIR}/include")
link_directories("${PROJECT_SOURCE_DIR}/lib")

set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/lib")
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/bin")

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

message(STATUS "Build documentation open")
include(build-doxygen.cmake)
build_doxygen()

message(STATUS "Add libfuse")
# set(CMAKE_CXX_FLAGS " -I/usr/local/include/fuse3 -L/usr/local/lib/x86_64-linux-gnu -lfuse3 -lpthread ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS " -I/usr/local/include/fuse3  -lfuse3 ${CMAKE_CXX_FLAGS}")

find_package(spdlog REQUIRED)
add_executable("${PROJECT_NAME}Demo" ${SRCS_LIST})
target_link_libraries("${PROJECT_NAME}Demo" PRIVATE spdlog::spdlog)


